home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 July & August / PCWorld_2006-07-08_cd.bin / v cisle / acehtml / acehtmlfreeware.exe / scriptdef / Show Date 4.sd < prev    next >
INI File  |  2004-06-28  |  966b  |  54 lines

  1. [SUBJECT]
  2. Description=Display the current date (4th variant)
  3. ImageIndex=-1
  4. Folder=Tools
  5.  
  6.  
  7. [HEAD_TEXT]
  8. ;<script language="JavaScript">
  9. ;<!-- begin script
  10. ;var dd4, delay4, TheYear;
  11. ;function debuteDate4() {
  12. ;  var adate, date, amonth;
  13. ;  delay4 = `delay`;
  14. ;
  15. ;  adate = new Date();
  16. ;  date = adate.getDate();
  17. ;  amonth = adate.getMonth()+1;
  18. ;
  19. ;
  20. ;  if (adate.getYear() > 1999)
  21. ;    TheYear = adate.getYear();
  22. ;  else 
  23. ;    TheYear = (1900 + adate.getYear());
  24. ;
  25. ;  if (amonth < 10)
  26. ;    date += "-0" + amonth + "-" + TheYear;
  27. ;  else date += "-" + amonth + "-" + TheYear;
  28. ;  date = "  " + date;
  29. ;  document.Temps24.date.value = date;
  30. ;
  31. ;  dd4 = setTimeout("debuteDate4(delay4)",delay4);
  32. ;}
  33. ;//  end script -->
  34. ;</script>
  35. ;
  36.  
  37.  
  38. [BODY_TAG]
  39. ;onLoad="debuteDate4()" onUnload="clearTimeout(dd4)"
  40.  
  41.  
  42. [BODY_TEXT]
  43. ;<form name="Temps24">
  44. ;<input type="text" name="date" size="18"><br>
  45. ;</form>
  46. ;
  47.  
  48.  
  49.  
  50. [`delay`]
  51. Kind=N
  52. Value=10000
  53.  
  54.